package com.wswy.wyjk.ui.main.model;

import java.util.List;

public class RankResponse {

    /**
     * list : [{"user_id":1,"car_type":"xc","course":1,"score":1,"duration":12,"area_code":310000,"user":{"uid":"67b4SjZ2M/6GBgEWA9aW9BxbXqsBKC7LmhDjGmZ9","avatar":"","nickname":"用户9235"}}]
     * rank : 0
     */

    private int rank;//当前用户排名，0表示未上榜
    private List<ListBean> list;

    public int getRank() {
        return rank;
    }

    public void setRank(int rank) {
        this.rank = rank;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean {
        /**
         * user_id : 1
         * car_type : xc
         * course : 1
         * score : 1
         * duration : 12
         * area_code : 310000
         * user : {"uid":"67b4SjZ2M/6GBgEWA9aW9BxbXqsBKC7LmhDjGmZ9","avatar":"","nickname":"用户9235"}
         */

        private int user_id;
        private String car_type;//车辆类型
        private int course;//科目
        private int score;//分数
        private int duration;//用时
        private int area_code;//地区
        private UserBean user;

        public int getUser_id() {
            return user_id;
        }

        public void setUser_id(int user_id) {
            this.user_id = user_id;
        }

        public String getCar_type() {
            return car_type;
        }

        public void setCar_type(String car_type) {
            this.car_type = car_type;
        }

        public int getCourse() {
            return course;
        }

        public void setCourse(int course) {
            this.course = course;
        }

        public int getScore() {
            return score;
        }

        public void setScore(int score) {
            this.score = score;
        }

        public int getDuration() {
            return duration;
        }

        public void setDuration(int duration) {
            this.duration = duration;
        }

        public int getArea_code() {
            return area_code;
        }

        public void setArea_code(int area_code) {
            this.area_code = area_code;
        }

        public UserBean getUser() {
            return user;
        }

        public void setUser(UserBean user) {
            this.user = user;
        }

        public static class UserBean {
            /**
             * uid : 67b4SjZ2M/6GBgEWA9aW9BxbXqsBKC7LmhDjGmZ9
             * avatar :
             * nickname : 用户9235
             */

            private String uid;
            private String avatar;//用户头像
            private String nickname;//昵称

            public String getUid() {
                return uid;
            }

            public void setUid(String uid) {
                this.uid = uid;
            }

            public String getAvatar() {
                return avatar;
            }

            public void setAvatar(String avatar) {
                this.avatar = avatar;
            }

            public String getNickname() {
                return nickname;
            }

            public void setNickname(String nickname) {
                this.nickname = nickname;
            }
        }
    }
}
